package com.lk.theurlpro.dao;

import com.lk.theurlpro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * @author lk
 * @date 2020/2/10 0010 14:35
 */
@Mapper
public interface LoginMapper {

    @Select("select * from user where name = #{name} ")
    User getUser(String name);

//    @Select("select role_menu.menu_id , menu_name from role_menu,power_menu where role_id = #{role_id} and role_menu.menu_id = power_menu.menu_id")
//    List<PowerMenu> getRoleMenu(int role_id);
//
//    @Select("select user_role.role_id , role_name from user_role,role where user_id = #{user_id} and user_role.role_id = role.role_id")
//    List<Role> getUserRole(int user_id);


}
